package priv.w2;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import priv.haha.MyConfig;

@ComponentScan(basePackageClasses= {MyConfig.class},basePackages= {"priv.w2"})
@Configuration
public class Work2Config {
	
	@Autowired
	private ApplicationContext applicationContext;
	
	@Bean
	public Compamy compamy() {
		return new Compamy();
	}
	
	@Bean
	public Date aaa() {
		return new Date();
	}

}
